<%--
  Created by IntelliJ IDEA.
  User: Fan
  Date: 2016/9/27
  Time: 21:36
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html>
<head>
    <meta name="viewport" content="width=device-width,height=device-height,initial-scale=1.0,maximum-scale=1.0,user-scalable=no">
    <title>管理员登录</title>
    <style type="text/css">
        body{
            background-image: url(../images/background.jpg);
            /*background-repeat: repeat-x;*/
            background-size:cover;
        }
    </style>
    <script type="text/javascript">
        function login(form) {
            if (form.phone.value == "") {
                alert("用户不能为空！");
                return false;
            }
            if (form.password.value == "") {
                alert("密码不能为空！");
                return false;
            }
        }
    </script>
</head>
<body>
    <form action="${pageContext.request.contextPath}/AdminLoginServlet" method="post"
          onSubmit="return login(this);">
        <table align="center" width="300" border="0" class="tb1">
            <tr>
                <td align="right">用户名：</td>
                <td><input type="text" name="phone"></td>
            </tr>
            <tr>
                <td align="right">密 码：</td>
                <td><input type="password" name="password"></td>
            </tr>
            <tr>
                <td colspan="2" align="center" height="50"><input type="submit"
                                                                  value="登 录"> <input type="reset" value="重 置"></td>
            </tr>
        </table>
    </form>
</body>
</html>
